import React from 'react';
import ReactDOM from 'react-dom';
import 'normalize.css';
import '@/assets/global.scss';
import {Provider} from 'react-redux';
import {HashRouter as Router, Route} from 'react-router-dom';
import store from '@/store';
import App from './App';

// document.documentElement.style.fontSize = document.documentElement.clientWidth / 75 + 'px';
//
// window.onresize = () => {
//   console.log('变了', document.documentElement.clientWidth);
//   document.documentElement.style.fontSize = document.documentElement.clientWidth / 75 + 'px';
// }

ReactDOM.render((
  <Provider store={store}>
    <Router>
      <Route component={App}></Route>
    </Router>
  </Provider>
), document.getElementById('root'));
